package com.fa.wisdom.ui;

import android.content.Intent;
import android.view.View;

import com.fa.wisdom.R;
import com.fa.wisdom.base.BaseActivity;
import com.fa.wisdom.utils.TitleBuilder;

public class JKActivity extends BaseActivity {
    @Override
    public void setListen() {
        new TitleBuilder(this).setTitleText("健康信息")
                .setLeftIcoListening(new View.OnClickListener() {
                    @Override
                    public void onClick(View view) {
                        finish();
                    }
                });
    }

    @Override
    protected boolean isStatusBarBlack() {
        return true;
    }

    @Override
    public void setTitleBarColor() {

    }

    @Override
    public int intiLayout() {
        return R.layout.activity_jk;
    }

    @Override
    public void initView() {

    }

    @Override
    public void initData() {

    }
    //血糖
    public void xuetang(View v){
       startActivity(new Intent(this,WebActivity.class)
               .putExtra("url","http://br.feiaikeji.cn/index/index/blood_pressure.html")
       .putExtra("title","血压"));
    }
    //血压
    public void xueya(View v){
        startActivity(new Intent(this,WebActivity.class)
                .putExtra("url","http://br.feiaikeji.cn/index/index/blood_pressure.html")
                .putExtra("title","血压"));
    }
    //心率
    public void xinlv(View v){
        startActivity(new Intent(this,WebActivity.class)
                .putExtra("url","http://br.feiaikeji.cn/index/index/heart_rate.html")
                .putExtra("title","心率"));
    }
    //血氧
    public void xueyang(View v){
        startActivity(new Intent(this,WebActivity.class)
                .putExtra("type",3));
    }
    //体温
    public void tiwen(View v){
        startActivity(new Intent(this,WebActivity.class)
                .putExtra("url","http://br.feiaikeji.cn/index/index/temperature.html")
                .putExtra("title","体温"));
    }
    //血脂
    public void xuezhi(View v){
        startActivity(new Intent(this,WebActivity.class)
                .putExtra("type",5));
    }
}
